package com.bc.commonentity.enums;

public enum LogDetailType {
	service(0,"service"),
	db(1,"db"),
	redis(2,"redis"),
	postget(3,"postget"),
	dubbox(4,"dubbox"),
	activeMq(5,"activeMq"),
	mongo(6,"mongo"),
	rabbitMq(7,"rabbitMq");	
	private int value = 0;
	private String desc;
	private LogDetailType(int value, String desc) { 
		this.value = value;
		this.desc = desc;
	}
	public int value() {
		return this.value;
	}
	public String desc() {
		return this.desc;
	}

	public static LogDetailType getEnum(int index) {
		for (LogDetailType c : LogDetailType.values()) {
			if (c.value() == index) {
				return c;
			}
		}
		return null;
	}
}
